﻿<%@ Page Language="c#" CodeBehind="NewItem.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.BBS.NewItemPage" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
  <title>发贴</title>
  <uds:Style runat="server" Href="~/css/BasicLayout.css" />
  <script language="javascript">
    //<!--
    function addcontent(str1, str2) {
      NewItem.Content.focus();
      if ((document.selection) && (document.selection.type == "Text")) {
        var range = document.selection.createRange();
        var ch_text = range.text;
        range.text = str1 + ch_text + str2;
      }
      else {
        document.NewItem.Content.value = document.NewItem.Content.value + str1 + str2;
        NewItem.Content.focus();
      }
    }

    function sysbulletin_click() {
      document.getElementById('cbx_DeskTop').disabled = !document.getElementById('cbx_sysbulletin').checked;

    }
    //-->
  </script>
</head>
<body onload="document.getElementById('cbx_DeskTop').disabled=true">
  <form id="NewItem" runat="server">
    <table style="border-collapse: collapse" height="81" cellspacing="0" cellpadding="0" width="96%" border="1">
      <tr align="middle" bgcolor="#93bee2">
        <td class="Gbtext" valign="top" colspan="2" height="20" style="height: 20px"><span class="whiteTextBX"><font size="3">.::发送新贴::.
								<asp:CheckBox id="cbx_bulletin" runat="server" Text="本版公告" Font-Size="X-Small" ForeColor="Red" />
								<asp:CheckBox id="cbx_sysbulletin" runat="server" ForeColor="Red" Font-Size="X-Small" Text="系统公告" />
								<asp:CheckBox id="cbx_DeskTop" runat="server" />
								<asp:Label id="lbl_DeskTop" runat="server">桌面提醒</asp:Label>
							</font></span></td>
        <td class="Gbtext" valign="top" height="20" style="height: 20px"></td>
      </tr>
      <tr>
        <td class="Gbtext" align="right" width="100" height="30">主题：</td>
        <td class="Gbtext" align="left" height="18">
          <input class="InputCss" id="tbTitle" style="width: 597px; height: 19px" type="text" size="94" runat="server">
        </td>
        <td class="Gbtext" align="left" height="18"></td>
      </tr>
      <tr bgcolor="#e8f4ff">
        <td class="Gbtext" align="right" height="30">排版：</td>
        <td class="Gbtext" align="left" bgcolor="#e8f4ff" height="21">
          <a title="粗体" href="javascript:addcontent('[B]','[/B]');"><img height="20" src="ubb/bold.GIF" width="20" align="absMiddle" border="0"></a>
          <a title="斜体" href="javascript:addcontent('[I]','[/I]');"><img height="20" src="ubb/italicize.GIF" width="20" align="absMiddle" border="0"></a>
          <a title="下划线" href="javascript:addcontent('[U]','[/U]');"><img height="20" src="ubb/underline.GIF" width="20" align="absMiddle" border="0"></a>
          <a title="居中" href="javascript:addcontent('[ALIGN=CENTER]','[/ALIGN]');"><img height="20" src="ubb/center.GIF" width="20" align="absMiddle" border="0"></a>
          <a title="链接" href="javascript:addcontent('[URL]','[/URL]');"><img height="20" src="ubb/url1.GIF" width="20" align="absMiddle" border="0"></a>
          <a title="邮件" href="javascript:addcontent('[EMAIL]','[/EMAIL]');"><img height="20" src="ubb/email1.GIF" width="20" align="absMiddle" border="0"></a>
          <a title="图片" href="javascript:addcontent('[IMG]','[/IMG]');"><img height="20" src="ubb/image.GIF" width="20" align="absMiddle" border="0"></a>
          <a title="Flash" href="javascript:addcontent('[FLASH]','[/FLASH]');"><img height="20" src="ubb/swf.GIF" width="20" align="absMiddle" border="0"></a>
          <a title="代码" href="javascript:addcontent('[CODE]','[/CODE]');"><img height="20" src="ubb/code.GIF" width="20" align="absMiddle" border="0"></a>
          <a title="引用" href="javascript:addcontent('[QUOTE]','[/QUOTE]');"><img height="20" src="ubb/quote1.GIF" width="20" align="absMiddle" border="0"></a>
          <a title="飞行" href="javascript:addcontent('[FLY]','[/FLY]');"><img height="20" src="ubb/fly.GIF" width="20" align="absMiddle" border="0"></a>
          <a title="移动" href="javascript:addcontent('[MOVE]','[/MOVE]');"><img height="20" src="ubb/move.GIF" width="20" align="absMiddle" border="0"></a>
          <a title="发光" href="javascript:addcontent('[GLOW=255,RED,2]','[/GLOW]');"><img height="20" src="ubb/glow.GIF" width="20" align="absMiddle" border="0"></a>
          <a title="阴影" href="javascript:addcontent('[SHADOW=255,RED,2]','[/SHADOW]');"><img height="20" src="ubb/shadow.GIF" width="20" align="absMiddle" border="0"></a>
          <a title="3号字" href="javascript:addcontent('[SIZE=3]','[/SIZE]');"><img height="20" src="ubb/size3.GIF" width="20" align="absMiddle" border="0"></a>
          <a title="蓝色字" href="javascript:addcontent('[COLOR=blue]','[/COLOR]');"><img height="20" src="ubb/blue.gif" width="20" align="absMiddle" border="0"></a>
          <a title="红色字" href="javascript:addcontent('[COLOR=red]','[/COLOR]');"><img height="20" src="ubb/red.GIF" width="20" align="absMiddle" border="0"></a>
          <a title="插入Media文件" href="javascript:addcontent('[MP=320,240]','[/MP]');"><img height="20" src="ubb/media.gif" width="20" align="absMiddle" border="0"></a>
          <a title="插入RealPlay文件" href="javascript:addcontent('[RM=320,240]','[/RM]');"><img height="20" src="ubb/real.gif" width="20" align="absMiddle" border="0"></a>
          <a title="使用帮助" href="help.htm" target="_blank">使用帮助</a>
        </td>
        <td class="Gbtext" align="left" bgcolor="#e8f4ff" height="21"></td>
      </tr>
      <tr>
        <td class="Gbtext" align="right" height="30">上传：</td>
        <td class="Gbtext" align="left" height="21">
              <INPUT class="INPUTCSS" id="hif" style="WIDTH: 185px; HEIGHT: 19px" type="file" size="11" runat="server">&nbsp;
							<asp:DropDownList id="ddl_FileType" runat="server">
								<asp:ListItem Value="picture">图片</asp:ListItem>
								<asp:ListItem Value="rm">rm</asp:ListItem>
								<asp:ListItem Value="mp3">mp3</asp:ListItem>
								<asp:ListItem Value="avi">avi</asp:ListItem>
								<asp:ListItem Value="swf">swf</asp:ListItem>
								<asp:ListItem Value="other"> 其他</asp:ListItem>
							</asp:DropDownList>&nbsp;
							<asp:button id="btn_UpAtt" runat="server" Text="上传" CssClass="inputcss" />
							<asp:ListBox id="lbx_AttList" runat="server" Width="140px" Height="66px" SelectionMode="Multiple" />
							<asp:Button id="btn_DelAtt" runat="server" Text="删除" CssClass="inputcss" />
				</td>
        <td class="Gbtext" align="left" height="21"></td>
      </tr>
      <tr>
        <td class="Gbtext" valign="top" align="right" height="140">内容：</td>
        <td class="Gbtext" valign="top" align="left" height="140">
          <textarea id="Content" style="width: 603px; height: 144px" rows="9" cols="73" runat="server"></textarea>
        </td>
        <td class="Gbtext" valign="top" align="left" height="140"></td>
      </tr>
      <tr align="middle" bgcolor="#e8f4ff">
        <td class="Gbtext" colspan="2" height="30">
          <input class="ButtonCss" id="cmdOK" type="submit" value=" 发 送 " runat="server">
          &nbsp;&nbsp;
          <input class="ButtonCss" type="reset" value=" 重 写" name="cmdCancel"></td>
        <td class="Gbtext" height="30"></td>
      </tr>
      <tr align="middle">
        <td class="Gbtext" colspan="2" height="30"><a href="javascript:window.close();">关闭窗口</a></td>
        <td class="Gbtext" height="30"></td>
      </tr>
    </table>
  </form>
</body>
</html>
